package com.cuzofu.fs.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cuzofu.fs.entity.ProjectEntity;
import com.cuzofu.fs.vo.MajorVO;
import com.cuzofu.fs.vo.ProjectVO;
import com.cuzofu.fs.vo.UnitVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目信息
 *
 * @author cuzofu
 * @email cuzofu@qq.com
 * @date 2020-07-10 08:44:49
 */
@Mapper
public interface ProjectDao extends BaseMapper<ProjectEntity> {

    IPage<ProjectVO> queryProjectPage(IPage<ProjectVO> page, @Param("ew") Wrapper<ProjectVO> qw);

    ProjectVO queryProjectById(String id);

    List<UnitVO> queryUnitListByPid(String pid);

}
